from Item import *
import Effects
class WoundReverser(Item):#undoes all wounds, a full heal
    def __init__(self):
        Item.__init__(self,color = L.black, character=135)
    def useScript(self,user):
        user.hp = user.max_hp
        addMessage("Your wounds never happened!",L.green)
        return (True,True)
    def name(self):
        return "Orb of Wound Reversing"
    
class Teleporter(Item):#teleports the user
    def __init__(self):
        Item.__init__(self,color = L.blue, character=135)
    def useScript(self,user):
        Effects.Teleport(user)
        addMessage("You teleport!",L.white)
        return (True,True)
    def name(self):
        return "Orb of Teleportation"
    
class Machette(Weapon):
    attackboost = 50
    defenseboost = 50
    damagebonus = 6
    def __init__(self):
        Item.__init__(self,color = L.black, character='(')
    def name(self):
        return "Machette"
    
class EnergyPulseWeapon(RangedWeapon):
    def __init__(self):
        RangedWeapon.__init__(self,color = L.violet, character = 80)
    def name(self):
        return "Energy Pulse Weapon"

class ArmorTest(Armor):
    def __init__(self):
        Armor.__init__(self,color = L.red, character = '[')
    def name(self):
        return "Test Armor"

#iterator for creatures?    
"""class AgeReminder(Item):#does a "Torment" to all creatures in sight
    def __init__(self):
        Item.__init__(self,color = L.red, character=135)
    def useScript(self):
        for creature in Game()[A_MAP][L_CRE]:
            creature.takeDamage(int((creature.hp/2)-0.5))#every creature takes damage
        addMessage("You remind everyone of their age!",L.green)
        return (True,True)
    def name(self):
        return "Age Reminder"""